package com.yangrong.newsservice.service.impl;

import com.yangrong.newsservice.dao.TbFlashArticlesDao;
import com.yangrong.newsservice.entity.TbFlashArticlesEntity;
import com.yangrong.newsservice.service.TbFlashArticlesService;
import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yangrong.common.utils.PageUtils;
import com.yangrong.common.utils.Query;


@Service("tbFlashArticlesService")
public class TbFlashArticlesServiceImpl extends ServiceImpl<TbFlashArticlesDao, TbFlashArticlesEntity> implements TbFlashArticlesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TbFlashArticlesEntity> page = this.page(
                new Query<TbFlashArticlesEntity>().getPage(params),
                new QueryWrapper<TbFlashArticlesEntity>()
        );

        return new PageUtils(page);
    }

}